package main

import (
	"github.com/gin-gonic/gin"
	"go-doc/internal"
	"log"
)

func main() {
	gin.SetMode("debug")
	r := internal.InitRouter()
	err := r.Run(":8081")
	if err != nil {
		log.Fatalln("Something terrible happened:", err)
	}

	//grpcServer := grpc.NewServer()
	//if err := grpcServer.Serve(r); err != nil {
	//	log.Fatalf("failed to serve: %s", err)
	//}
}
